package com.example.common.enums;

/**
 * @author: yukong
 * @date: 2018/10/12 10:51
 * @description: 响应信息code枚举
 */
public enum ResponseCodeEnum {

    SUCCESS(0, "success"),

    NOT_LOGIN(-1, "need login"),

    FAIL(-1, "fail"),
    // code 设为0 防止前端页面弹出msg
    OpenIdLoginFail(0, "loginFail"),

    PERMISSION_DEFINED(2, "permission defined"),

    REPEAT_SUBMIT(3, "重复提交"),

    //数据已存在
    DATA_ALREADY_EXISTS(-1000, "Data already exists"),

    //调用方法异常
    CALL_METHOD_EXCEPTION(-9999, "Call method exception"),

    //未知异常
    UNKNOWN_EXCEPTION(9999, "unknown exception"),

    LOGIN_FALSE(-1002, "登录失败"),

    LOGIN_FALSE_NOT_TOKEN(-1003, "鉴权失败"),

    MALL_SERVICE_SAVE_AD_FALSE(-3000, "保存失败"),

    MALL_SERVICE_SAVE_TYPE_FALSE(-3200, "该编号已被占用"),

    MALL_SERVICE_PAGE_AD_FALSE(-3003, "分页查询失败"),

    MALL_SERVICE_SAVE_CHANNEL_FALSE(-3010, "查询事件不存在"),

    MALL_SERVICE_UPDATE_CHANNEL_FALSE(-3011, "上传目录不存在，请确认您配置的物理路径是否正确！"),

    MALL_SERVICE_REMOVE_CHANNEL_FALSE(-3012, "上传目录没有写权限。"),

    MALL_SERVICE_PAGE_CHANNEL_FALSE(-3013, "上传文件太大,不能超过100M"),

    MALL_SERVICE_SAVE_CHANNEL_NAME_FALSE(-3014, "上传文件失败"),

    MALL_SERVICE_SELECTLIST_CHANNEL_FALSE(-3013, "上报事件名不能为空"),

    MALL_SERVICE_SAVE_CUSTOMER_FALSE(-3020, "上报事件类型不能为空"),

    MALL_SERVICE_UPDATE_CUSTOMER_FALSE(-3021, "上传文件类型不能为空"),

    MALL_SERVICE_REMOVE_CUSTOMER_FALSE(-3022, "上报人手机号不可为空"),

    MALL_SERVICE_PAGE_CUSTOMER_FALSE(-3023, "组织树查询失败"),

    MALL_SERVICE_ISREG_CUSTOMER_FALSE(-3023, "该设备编号已存在"),

    MALL_SERVICE_SELECT_CUSTOMER_FALSE(-3024, "获取用户信息失败"),

    MALL_SERVICE_SELECT_CUSTOMER_UPLOAD_FALSE(-3024, "文件上传格式只允许为xls"),

    MALL_SERVICE_SAVE_GOODS_FALSE(-3030, "保存商品失败"),

    MALL_SERVICE_UPDATE_GOODS_FALSE(-3031, "修改商品失败"),

    MALL_SERVICE_REMOVE_GOODS_FALSE(-3032, "删除商品失败"),

    MALL_SERVICE_PAGE_GOODS_FALSE(-3033, "商城商品分页查询失败"),

    MALL_SERVICE_SELECT_GOODS_FALSE(-3034, "获取商品信息失败"),

    MALL_SERVICE_XJ_GOODS_FALSE(-3035, "商品上下架失败"),

    MALL_SERVICE_TJ_GOODS_FALSE(-3036, "商品推荐失败"),

    MALL_SERVICE_BUY_GOODS_FALSE(-3036, "商品兑换失败"),

    MALL_SERVICE_ORDER_SAVE_FALSE(-3040, "保存订单失败"),

    MALL_SERVICE_ORDER_UPDATE_FALSE(-3041, "修改失败"),

    MALL_SERVICE_ORDER_REMOVE_FALSE(-3042, "删除订单失败"),

    MALL_SERVICE_ORDER_PAGE_FALSE(-3043, "商城订单分页查询失败"),

    MALL_SERVICE_ORDER_GET_FALSE(-3044, "获取信息失败"),

    MALL_SERVICE_ORDER_EXPORT_FALSE(-3045, "预案触发失败"),

    MALL_SERVICE_ORDER_EXPORT_NULL(-3046, "设备通道不存在"),

    MALL_SERVICE_ACITIVITY_EXPORT_FALSE(-3050, "设备通道编号或告警编号不可为空"),

    MALL_SERVICE_ACITIVITY_EXPORT_NULL(-3051, "没有可导出的信息"),

    MALL_SERVICE_ACITIVITY_PAGE_FALSE(-3052, "查询活动分页错误"),

    INTEGRAL_SERVICE_INTCIFINFO_PAGE_FALSE(-3060, "用户积分查询有误"),

    INTEGRAL_SERVICE_INTCIFINFO_UPDATE_FALSE(-3061, "用户积分更新有误"),

    INTEGRAL_SERVICE_INTCIFINFO_GET_FALSE(-3062, "查询用户积分有误"),

    INTEGRAL_SERVICE_TRANLOG_GET_FALSE(-3063, "积分明细查询有误"),
    INTEGRAL_SERVICE_JFGG_ALIVE(-3055, "同一积分规则编号下，积分规则至多只可生效一个"),
    INTEGRAL_SERVICE_CRDPBK_GET_FALSE(-3064, "客户对照信息查询有误"),
    INTEGRAL_SERVICE_CRDPBK_GET_NULL(-3074, "本平台仅对我行客户开放，您还未办理我行相关业务！"),
    MALL_SERVICE_WX_SAVEORDER_FALSE(-3065, "保存电子券订单失败"),

    ACCOUNT_SERVICE_FORGET_PWD_CODE_ISVAILE_NOT(-3066, "验证码已失效"),

    ACCOUNT_SERVICE_FORGET_PWD_CODE_FALSE(-3067, "验证码有误"),
    ACCOUNT_SERVICE_FORGET_PWD_USER_ISALIVE(-3068, "该账号不存在，请先注册"),
    MALL_SERVICE_SAVE_AD_CHECK(-3044, "配置商品不存在或商品未上架"),
    MALL_SERVICE_SAVE_AD_CHECKSH(-3045, "配置商户不存在"),
    MALL_SERVICE_SAVE_AD_CHECKBYSH(-3046, "查询配置商户错误"),
    MALL_SERVIC_SPGG_NOT(-7000, "商品规格不存在"),
    MALL_SERVIC_SPKC_NOT(-7001, "商品库存不足"),
    MALL_SERVIC_SPXPFA_NOT(-7002, "商品消费方案不存在"),
    MALL_SERVIC_SPXPJF_DATA_NOT(-7003, "商品消费积分数据有误"),
    MALL_SERVIC_SP_DATA_NOT(-7004, "商品不存在"),
    MALL_SERVIC_USER_NOT(-7005, "用户不存在"),
    MALL_SERVIC_INTEGRAL_DATA_NOT(-7006, "获取积分库数据失败"),
    MALL_SERVIC_USER_DATA_NOT(-7007, "用户暂无积分数据"),
    MALL_SERVIC_USER_DATA_CANUSE_NOT(-7008, "用户可用积分为负，无法兑换"),
    MALL_SERVIC_USER_CANUSE_NOT(-7009, "可用兑换积分不足"),
    MALL_SERVIC_ORDER_SAVE_FALSE(-7119, "保存订单失败"),
    MERCHANT_SERVICE_PAGE_FALSE(-3080, "商户分页查询失败"),
    MERCHANT_SERVICE_SELECT_MERCHANT_FALSE(-3081, "获取商户信息失败"),
    MERCHANT_SERVICE_MERCHANT_DELETE(-3082, "商户信息删除失败！"),
    MERCHANT_SERVICE_MERCHANT_LOGIN(-3096, "用户名或密码错误！"),
    MERCHANT_SERVICE_MERCHANT_UPDATE(-3083, "商户信息更新失败！"),
    MERCHANT_SERVICE_MERCHANT_ADD(-3088, "商户信息保存失败！"),
    MERCHANT_SERVICE_MERCHANT_EXIST(-3092, "商户已存在!"),

    MERCHANT_STAFF_SERVICE_PAGE_FALSE(-3084, "商户员工分页查询失败"),
    MERCHANT_STAFF_SERVICE_SELECT_MERCHANT_FALSE(-3085, "获取商户员工信息失败"),
    MERCHANT_STAFF_SERVICE_MERCHANT_DELETE(-3086, "商户员工信息删除失败！"),
    MERCHANT_STAFF_SERVICE_MERCHANT_UPDATE(-3087, "商户员工信息更新失败！"),
    MERCHANT_STAFF_SERVICE_MERCHANT_ADDD(-3089, "商户员工信息保存失败！"),
    MERCHANT_STAFF_SERVICE_MERCHANT_EXIST(-3093, "商户员工已存在！"),
    MERCHANT_SERVICE_RECOMMEND(-3090, "推荐首页失败！"),
    MERCHANT_STAFF_SERVICE_EXPORT(3090, "导出员工信息失败！"),
    MERCHANT_STAFF_SERVICE_IMPORT(3091, "导入员工信息失败！"),

    INTEGRAL_CARDID_NOT_FOUND(-2001, "未查询到证件号"),

    FDMALL_CUSTMES_XF_FAIL(-6001, "积分余额不足，销分失败！"),
    FDMALL_CUSTMES_NOCUSTOMERXF_FAIL(-6001, "用户不存在，销分失败！"),
    FDMALL_CUSTMES_SERVICE_IMPORT(-6002, "导入充值信息失败"),
    FDMALL_CUSTMES_SERVICE_IMPORT_TYPEERROR(-6602, "导入文件格式不正确"),
    FDMALL_CUSTOMER_SERVICE_PAGERECHARGE_FALSE(-6003, "获取客户充值积分记录失败"),
    FDMALL_CUSTOMER_SERVICE_REMOVERECHARGE_FALSE(-6004, "删除客户充值积分记录失败"),
    FDMALL_CUSTOMER_SERVICE_UPDATERECHARGE_FALSE(-6005, "更新客户充值积分记录失败"),
    FDMALL_CUSTOMER_SERVICE_INSERTRECHARGE_FALSE(-6006, "插入客户充值积分记录失败"),
    FDMALL_CUSTOMER_SERVICE_PBK_NOUALIVE(-6006, "本行不存在该客户"),
    FDMALL_CUSTOMER_SERVICE_ACTIVATERECHARGE_FALSE(-6007, "激活客户充值积分记录失败"),
    FDMALL_CUSTOMER_SERVICE_XF_FALSE(-6008, "销分失败"),
    FDMALL_CUSTOMER_SERVICE_EXPORTERECHARGE_FALSE(-6009, "导出客户充值积分记录失败"),
    FDMALL_CUSTOMER_SERVICE_EXPORTECUSTOMER_FALSE(-6010, "导出注册用户信息失败"),
    INTEGRAL_SERVICE_REMOVE_TRANLOG_FALSE(-3065, "删除积分明细失败"),
    INTEGRAL_SERVICE_UPDATE_TRANLOG_FALSE(-3066, "更新积分明细失败"),
    INTEGRAL_SERVICE_ACTIVATE_TRANLOG_FALSE(-3067, "激活积分明细失败"),
    INTEGRAL_SERVICE_ADVMSG_YZ_FALSE(-30675, "该客户今日已预支过积分，不支持预支！"),
    FDMALL_CUSTOMER_SERVICE_UPDATECUSTOMER_FALSE(-3068, "修改客户信息失败"),
    MALL_CUSTOMER_SERVICE_EXPORTECUSTOMER_FALSE(-3069, "导出注册用户信息失败"),

    FDMALL_CATEGORY_SERVICE_GETCATEGORYTREE_FALSE(-3070, "获取栏目信息失败"),
    FDMALL_CATEGORY_SERVICE_ADDCATEGORY_FALSE(-3071, "添加栏目失败"),
    FDMALL_CATEGORY_SERVICE_ADDCATEGORYNAME_FALSE(-3072, "该栏目名已被使用"),
    FDMALL_CATEGORY_SERVICE_UPDATECATEGORY_FALSE(-3073, "修改栏目失败"),
    FDMALL_CATEGORY_SERVICE_DELETECATEGORY_FALSE(-3073, "删除栏目失败"),
    FDMALL_CATEGORY_SERVICE_GETCATEGORY_FALSE(-3074, "获取栏目失败"),
    FDMALL_ORDER_SERVICE_REPORGEXCHVO_FALSE(-3075, "获取积分消费报表失败"),
    FDMALL_ORDER_SERVICE_REPUSER_FALSE(-3075, "获取用户统计报表失败"),


    FDMALL_INVITE_SERVICE_RECORD_SAVE_FALSE(-4001, "添加邀请信息失败"),
    FDMALL_INVITE_SERVICE_RECORD_GET_FALSE(-4002, "获取邀请信息失败"),
    FDMALL_CINEMA_SERVICE_PAGE_FALSE(-4003, "影院分页查询失败"),
    FDMALL_CINEMA_SERVICE_GET_FALSE(-4004, "影院获取失败"),
    FDMALL_CINEMA_SERVICE_PUT_FALSE(-4005, "影院修改失败"),
    FDMALL_CINEMA_SERVICE_POST_FALSE(-4006, "影院添加失败"),
    FDMALL_CINEMA_SERVICE_POST_NAME_FALSE(-4008, "影院名称重复，添加失败"),
    FDMALL_CINEMA_SERVICE_DEL_FALSE(-4007, "影院删除失败"),
    MESSAGE_SMSDOWNLOG_PAGE_FALSE(-4009, "短信查询失败"),
    MALL_SERVICE_UPDATEMOBILE_GET_FAILE(-4009, "查询核心系统用户手机号失败"),
    MALL_SERVICE_UPDATEMOBILE_GETMESS_FAILE(-4009, "查询不到核心系统用户数据"),
    MALL_SERVICE_UPDATEMOBILE_GETMOBILE_FAILE(-4009, "查询核心系统用户手机号为空"),
    MALL_SERVICE_UPDATEMOBILE_CHECK_MOBILE_FAILE(-4009, "新手机号与预留手机号不一致"),
    MALL_SERVICE_PASS_GETPBKCARD_FAILE(-4010, "通过接口查询核心系统失败"),

    FDMALL_GOOD_SERVICE_DOWN(-4050, "商品未下架"),
    FDMALL_lOAN_SAVE_FASLE(-4051, "保存失败"),
    FDMALL_lOAN_SAVE_FASLE_SAME(-2020, "添加的记录已存在，请确认信息"),
    FDMALL_lOAN_UPDATE_FASLE(-4052, "修改失败"),
    FDMALL_lOAN_UPDATE_FASLE_SAME(-2010, "修改的记录已存在，请确认信息"),
    FDMALL_lOAN_IMPORT_FASLE(-4053, "导入失败"),
    FDMALL_lOAN_EXPORT_FASLE(-4053, "导出失败"),
    ;


    private Integer code;

    private String message;

    ResponseCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
